home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Floppyshop 2
/
Floppyshop - 2.zip
/
Floppyshop - 2.iso
/
art&graf.ix
/
art-4635
/
surf3d
/
surf3d3.eng
< prev
next >
Wrap
Text File
|
1996-06-03
|
3KB
|
63 lines
Mathematical functions
| name | description | examples
+-----------+--------------------------------------+----------------
| abs() | absolute value | abs(3)= 3
| | | abs(-4)= 4
| int() | total value (rounded down) | int(3.14)= 3
| | | int(-3.14)= -4
| ipart() | partial (truncated) | ipart(3.14)= 3
| | | ipart(-3.14)= -3
| exp() | exponential function, where e^x | exp(0)= 1
| log() | neprien(?) logarithm (base e) | log(1)= 0
| | being the inverse function of exp() |
| sqr() | square root | sqr(4)= 2
| cos() | cosine (angle in radians) | cos(0)= 1
| sin() | sine | sin(0)= 0
| tan() | tangent | tan(0)= 0
| sgn() | sign of x | sgn(7)= 1
| | | sgn(-2)= -1
| pos() | positive value | pos(8)= 8
| | | pos(-3)= 0
| hyp(,) | length of hypotenuse, where (x^2+y^2)| hyp(3,4)= 5
| angle(,) | angle formed between the defined | angle(0,1)= π/2
| | point and the axis of x |
| pow(,) | x to the power of y (y is integer) | pow(3,3)= 27
| mod(,) | x modulo y, with division of x by y | mod(33,10)= 3
| =(,) | x equals y: 1 if true, 0 if false | =(2,-7)= 0
| <(,) | x greater than y: ditto | <(2,-7)= 0
| >(,) | x less than y: ditto | >(2,-7)= 1
Warning
The following errors are not detected by "SURF3D":
- Values outside the domain of mathematical functions eg (log(-1)
- Mistakes in bracketing
- Division by 0
- Invalid characters, such as spaces
So watch out for these points! I don't know how the program will
behave if it encounters any of these errors.........
SURF3D - Version history
------------------------
V1.0: Full-screen non-GEM application. Speed comparisons with a
Falcon 030 alongside a 386 PC resulted in the Falcon winning by a
small margin (Great news! And the DSP was inactive). After all,
the PC was a portable.....
V2.0: "SURF3D" became a GEM window application, with a list of
pre-defined curves in a drop-down menu.
V3.0: "User" function implemented, allowing the entry of any
desired equation using 8 different mathematical operators.
V3.1: 18 mathematical functions. Save to disk of user functions.
Choice of viewing angles. Axis tracing.
==================================================================
English translation by Ralph Nelson-Tucker, June 1996
- with apologies! I'm no mathematician; I hope the above makes
sense.
==================================================================